package com.bicon.botu.mall.goods.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.bicon.botu.mall.goods.dto.TraceElementDTO;
import com.bicon.botu.mall.goods.entity.TraceElement;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 微量元素 Mapper 接口
 * </p>
 *
 * @author 孙永刚
 * @since 2017-07-21
 */
@Repository
public interface TraceElementMapper extends BaseMapper<TraceElement> {

    /**
     * 根据定制方案id查询元素详情
     *
     * @param id
     * @return
     */
    List<TraceElementDTO> findByTraceId(@Param("id") Integer id);

}